import MarketFrame from '@/components/Market/MarketFrame'
import List from '@/components/Market/Book/List'
import Detail from '@/components/Market/Book/Detail'
import Cart from '@/components/Market/Cart'
import Order from '@/components/Market/Order/Order'

export default {
  path: '/market',
  component: MarketFrame,
  children: [
    {
      path: '',
      name: 'MarketList',
      component: List
    },
    {
      path: 'detail/:id',
      name: 'MarketDetail',
      component: Detail
    },
    {
      path: 'cart',
      name: 'MarketCart',
      component: Cart
    },
    {
      path: 'order',
      name: 'MarketOrder',
      component: Order,
      meta: { login: true, admin: false }
    }
  ]
}
